﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using GetuiServerApiSDKDemo;

namespace WebApplication4.Controllers
{
    public class ValuesController : ApiController
    {
        ///// <summary>
        ///// 发送消息通知
        ///// </summary>
        //[HttpPost]
        //public void ToMessage(string title, string content, string clientIDs)
        //{
        //    demo.PushMessageToList(title, content, clientIDs);
        //}


        /// <summary>
        /// 发送消息通知
        /// </summary>
        [HttpPost]
        public void ToMessage(dynamic obj)
        {
            string title = obj.title;
            string content = obj.content;
            string clientIDs = obj.clientIDs;
            demo.PushMessageToList(title, content, clientIDs);
        }


    }
}
